package com.bigegg.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bigegg.employee.mapper.ActivityOrderMapper;
import com.bigegg.employee.domain.ActivityOrder;
import com.bigegg.employee.service.IActivityOrderService;

/**
 * 招聘会预定Service业务层处理
 * 
 * @author sun
 * @date 2022-08-15
 */
@Service
public class ActivityOrderServiceImpl implements IActivityOrderService 
{
    @Autowired
    private ActivityOrderMapper activityOrderMapper;

    /**
     * 查询招聘会预定
     * 
     * @param id 招聘会预定主键
     * @return 招聘会预定
     */
    @Override
    public ActivityOrder selectActivityOrderById(Long id)
    {
        return activityOrderMapper.selectActivityOrderById(id);
    }

    /**
     * 查询招聘会预定列表
     * 
     * @param activityOrder 招聘会预定
     * @return 招聘会预定
     */
    @Override
    public List<ActivityOrder> selectActivityOrderList(ActivityOrder activityOrder)
    {
        return activityOrderMapper.selectActivityOrderList(activityOrder);
    }

    /**
     * 新增招聘会预定
     * 
     * @param activityOrder 招聘会预定
     * @return 结果
     */
    @Override
    public int insertActivityOrder(ActivityOrder activityOrder)
    {
        return activityOrderMapper.insertActivityOrder(activityOrder);
    }

    /**
     * 修改招聘会预定
     * 
     * @param activityOrder 招聘会预定
     * @return 结果
     */
    @Override
    public int updateActivityOrder(ActivityOrder activityOrder)
    {
        return activityOrderMapper.updateActivityOrder(activityOrder);
    }

    /**
     * 批量删除招聘会预定
     * 
     * @param ids 需要删除的招聘会预定主键
     * @return 结果
     */
    @Override
    public int deleteActivityOrderByIds(Long[] ids)
    {
        return activityOrderMapper.deleteActivityOrderByIds(ids);
    }

    /**
     * 删除招聘会预定信息
     * 
     * @param id 招聘会预定主键
     * @return 结果
     */
    @Override
    public int deleteActivityOrderById(Long id)
    {
        return activityOrderMapper.deleteActivityOrderById(id);
    }
}
